package com.yoso.shop.infrastructure.dao.user.admin;

import com.yoso.shop.domain.user.admin.AdminEntity;
import com.yoso.shop.domain.user.admin.AdminEntityExample;
import com.yoso.shop.infrastructure.base.dao.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface AdminEntityMapper extends BaseMapper<AdminEntity, AdminEntityExample> {
    @Override
    long countByExample(AdminEntityExample example);

    @Override
    int deleteByExample(AdminEntityExample example);

    @Override
    int deleteByPrimaryKey(String id);

    @Override
    int insert(AdminEntity record);

    @Override
    int insertSelective(AdminEntity record);

    @Override
    List<AdminEntity> selectByExample(AdminEntityExample example);

    @Override
    AdminEntity selectByPrimaryKey(String id);

    @Override
    int updateByExampleSelective(@Param("record") AdminEntity record, @Param("example") AdminEntityExample example);

    @Override
    int updateByExample(@Param("record") AdminEntity record, @Param("example") AdminEntityExample example);

    @Override
    int updateByPrimaryKeySelective(AdminEntity record);
    @Override
    int updateByPrimaryKey(AdminEntity record);
}